<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>OnErrorExit</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">OnErrorExit()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>OnErrorExit</b></font>()</blockquote>

<b>概要</b><br><blockquote>



Changes the action taken if an error occurs to directly exit the program, even if the default action 
on the system is not to exit the program on this kind of error. The system may display an error dialog 
or print an error-message on the console on exit. 

 

</blockquote><p><b>参数</b></p><blockquote>
无.


</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>Remarks</b></p><blockquote>



To exit the program silently and suppress any system message, use <a href="onerrorcall.html">OnErrorCall()</a> and 
end the program from the error handler. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">  MessageRequester</font>("OnError test", "Test start")

<font color="#006666">  OnErrorExit</font>()
<font color="#006666">  Pokes</font>(10, "Hello World") <font color="#006666">; Cause a #PB_OnError_InvalidMemory error</font>
  
<font color="#006666">  MessageRequester</font>("OnError test", "This should never be displayed")
</font></pre>

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=onerrordefault.html>OnErrorDefault()</a> - <a href=index.html>OnError Index</a> - <a href=onerrorgoto.html>OnErrorGoto()</a> -&gt;



</body></html>